import {App} from "vue";
import router from "./router";
import api from "./api";

/**
 * 注册ui视图
 * @param app 注入路由
 */
export const setConf = (app: App) => {
    // 注入路由
    app.use(router);
    // 注入全局api
    app.config.globalProperties.api = api;
};